package com.demo.xml_b_setter;

import com.demo.xml_a_constructor.User;
import org.junit.Test;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.io.ClassPathResource;

public class TestSetter {
    
    @Test
    public void test() {
        String xmlPath="com/demo/xml_b_setter/beans.xml";
        ApplicationContext classPathXmlApplicationContext=new ClassPathXmlApplicationContext(xmlPath);
        Person person = (Person) classPathXmlApplicationContext.getBean("personId");
        System.out.println(person);
    
    }
    
}
